<template>
  <div id="app">
    <transition name="fade" mode="out-in">
      <router-view/>
    </transition>
    <footer-nav v-show="$route.meta.navShow"></footer-nav>
    <div id="loading" v-show="loading">
      <loading></loading>
    </div>
  </div>
</template>

<script>
import {mapState} from 'vuex'
import FooterNav from '@/components/Footer.vue'
import Loading from './components/loading/loading.vue'
export default {
  metaInfo: {
    title: 'App page',
    link: [
    ]
  },
  name: 'App',
  computed:{
    ...mapState(['loading'])
  },
  components: {
    FooterNav,
    Loading
  },
  data () {
    return {
      tabValue: 2
    }
  },
  methods: {
    handleChangeTab (value) {
      this.value = value
    }
  }
}
</script>

<style lang="scss">
  .vux-header {
    background-color: #fff !important;
  }
  .vux-header-back, .vux-header-title {
    color: #333 !important;
  }

  #loading{
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(255,255,255,.3);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
}
</style>
